package com.ycw.service.imp.CJY;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ycw.bean.Comments;
import com.ycw.dao.CommentsMapper;
import com.ycw.service.CJY.CommentsService;

@Service
public class CommentsServiceImpl implements CommentsService {

	@Autowired
	CommentsMapper commentsMapper;
	@Override
	public List<Comments> getALLComments() {
		return commentsMapper.getALLComments();
	}

	
	//删除评论通过id 
	@Override
	public void deleteComments(Comments comments) {
		commentsMapper.deleteByPrimaryKey(comments);
		
	}

}
